import request from '@/utils/request'

// 查询非遗唱腔汇总列表
export function listCavity(query) {
  return request({
    url: '/books/cavity/list',
    method: 'get',
    params: query
  })
}

// 查询非遗唱腔汇总详细
export function getCavity(vocalCavityId) {
  return request({
    url: '/books/cavity/' + vocalCavityId,
    method: 'get'
  })
}

// 新增非遗唱腔汇总
export function addCavity(data) {
  return request({
    url: '/books/cavity',
    method: 'post',
    data: data
  })
}

// 修改非遗唱腔汇总
export function updateCavity(data) {
  return request({
    url: '/books/cavity',
    method: 'put',
    data: data
  })
}

// 删除非遗唱腔汇总
export function delCavity(vocalCavityId) {
  return request({
    url: '/books/cavity/' + vocalCavityId,
    method: 'delete'
  })
}
